﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using IDAL;
using Factory;

namespace BLL
{
    public class B_CustomDetails : ICustomDetails
    {
        public void Add(CustomDetails obj)
        {
            CreateFactory.GetCustomDetails().Add(obj);
        }

        public void Delete(int id)
        {
            CreateFactory.GetCustomDetails().Delete(id);
        }

        public CustomDetails FindById(int id)
        {
          return  CreateFactory.GetCustomDetails().FindById(id);
        }

        public List<CustomDetails> GetAll()
        {
            return CreateFactory.GetCustomDetails().GetAll();
        }

        public List<Param_Custom> GetDataByTemplate(int id)
        {
            return CreateFactory.GetCustomDetails().GetDataByTemplate(id);
        }

        public void Update(int id, CustomDetails obj)
        {
            CreateFactory.GetCustomDetails().Update(id,obj);
        }
    }
}
